Optimal. Leaf size=204 \[ \frac {4 \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}-\frac {368 a^2 \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}-\frac {472 a (a+i a \tan (c+d x))^{3/2}}{315 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.33, antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3637, 3678,
3673, 3608, 3561, 212} \begin {gather*} \frac {4 \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}+\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}-\frac {368 a^2 \sqrt {a+i a \tan (c+d x)}}{105 d}-\frac {472 a (a+i a \tan (c+d x))^{3/2}}{315 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3561
Rule 3608
Rule 3637
Rule 3673
Rule 3678
Rubi steps
\begin {align*} \int \tan ^3(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx &=-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}+\frac {1}{9} (2 a) \int \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \left (\frac {17 a}{2}+\frac {19}{2} i a \tan (c+d x)\right ) \, dx\\ &=\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}+\frac {4}{63} \int \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)} \left (-\frac {57 i a^2}{2}+\frac {69}{2} a^2 \tan (c+d x)\right ) \, dx\\ &=\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}+\frac {8 \int \tan (c+d x) \sqrt {a+i a \tan (c+d x)} \left (-69 a^3-\frac {177}{2} i a^3 \tan (c+d x)\right ) \, dx}{315 a}\\ &=\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}-\frac {472 a (a+i a \tan (c+d x))^{3/2}}{315 d}+\frac {8 \int \sqrt {a+i a \tan (c+d x)} \left (\frac {177 i a^3}{2}-69 a^3 \tan (c+d x)\right ) \, dx}{315 a}\\ &=-\frac {368 a^2 \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}-\frac {472 a (a+i a \tan (c+d x))^{3/2}}{315 d}+\left (4 i a^2\right ) \int \sqrt {a+i a \tan (c+d x)} \, dx\\ &=-\frac {368 a^2 \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}-\frac {472 a (a+i a \tan (c+d x))^{3/2}}{315 d}+\frac {\left (8 a^3\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d}\\ &=\frac {4 \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}-\frac {368 a^2 \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {92 a^2 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{105 d}+\frac {38 i a^2 \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{63 d}-\frac {2 a^2 \tan ^4(c+d x) \sqrt {a+i a \tan (c+d x)}}{9 d}-\frac {472 a (a+i a \tan (c+d x))^{3/2}}{315 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.36, size = 176, normalized size = 0.86 \begin {gather*} -\frac {a^2 e^{-i (c+2 d x)} \sqrt {\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} (\cos (d x)+i \sin (d x)) \left (-10080 \sinh ^{-1}\left (e^{i (c+d x)}\right )+\sqrt {1+e^{2 i (c+d x)}} \sec ^5(c+d x) (2331+3012 \cos (2 (c+d x))+961 \cos (4 (c+d x))+282 i \sin (2 (c+d x))+331 i \sin (4 (c+d x)))\right )}{1260 \sqrt {2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 131, normalized size = 0.64
method | result | size |
derivativedivides | \(-\frac {2 \left (\frac {\left (a +i a \tan \left (d x +c \right )\right )^{\frac {9}{2}}}{9}-\frac {a \left (a +i a \tan \left (d x +c \right )\right )^{\frac {7}{2}}}{7}+\frac {a^{2} \left (a +i a \tan \left (d x +c \right )\right )^{\frac {5}{2}}}{5}+\frac {a^{3} \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a^{4} \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {9}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d \,a^{2}}\) | \(131\) |
default | \(-\frac {2 \left (\frac {\left (a +i a \tan \left (d x +c \right )\right )^{\frac {9}{2}}}{9}-\frac {a \left (a +i a \tan \left (d x +c \right )\right )^{\frac {7}{2}}}{7}+\frac {a^{2} \left (a +i a \tan \left (d x +c \right )\right )^{\frac {5}{2}}}{5}+\frac {a^{3} \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a^{4} \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {9}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d \,a^{2}}\) | \(131\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 156, normalized size = 0.76 \begin {gather*} -\frac {2 \, {\left (315 \, \sqrt {2} a^{\frac {13}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + 35 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {9}{2}} a^{2} - 45 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} a^{3} + 63 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{4} + 105 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{5} + 630 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{6}\right )}}{315 \, a^{4} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 412 vs. \(2 (161) = 322\).
time = 0.50, size = 412, normalized size = 2.02 \begin {gather*} \frac {2 \, {\left (315 \, \sqrt {2} \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (8 i \, d x + 8 i \, c\right )} + 4 \, d e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 4 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} + \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 315 \, \sqrt {2} \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (8 i \, d x + 8 i \, c\right )} + 4 \, d e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 4 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} - \sqrt {\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 2 \, \sqrt {2} {\left (646 \, a^{2} e^{\left (9 i \, d x + 9 i \, c\right )} + 1647 \, a^{2} e^{\left (7 i \, d x + 7 i \, c\right )} + 2331 \, a^{2} e^{\left (5 i \, d x + 5 i \, c\right )} + 1365 \, a^{2} e^{\left (3 i \, d x + 3 i \, c\right )} + 315 \, a^{2} e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )}}{315 \, {\left (d e^{\left (8 i \, d x + 8 i \, c\right )} + 4 \, d e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 4 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {5}{2}} \tan ^{3}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.29, size = 142, normalized size = 0.70 \begin {gather*} -\frac {2\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}}{5\,d}-\frac {4\,a^2\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{d}+\frac {2\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{7/2}}{7\,a\,d}-\frac {2\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{9/2}}{9\,a^2\,d}-\frac {2\,a\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{3\,d}-\frac {\sqrt {2}\,a^{5/2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2\,\sqrt {a}}\right )\,4{}\mathrm {i}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________